package com.kob.backend.controller.shop;

import com.kob.backend.pojo.shop;
import com.kob.backend.service.shop.ShopInfoGetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class ShopInfoGetController {
    @Autowired
    private ShopInfoGetService shopInfoGetService;
    @GetMapping("/shop/info/")
    public shop getshopinfo(@RequestParam Map<String,String> map){
        Integer productid=Integer.parseInt(map.get("productid"));
        return shopInfoGetService.getshopinfo(productid);
    }
}
